build: Use cc.links to check linker arguments
authorTing-Wei Lan <lantw@src.gnome.org>
Sun, 22 Apr 2018 13:42:03 +0000 (21:42 +0800)
committerTing-Wei Lan <lantw@src.gnome.org>
Sun, 22 Apr 2018 13:57:10 +0000 (21:57 +0800)
commitff1dd5009c4c8367975662393988b5fc5d7f03e6
tree43518a27fbdfc5e9239ef851c6e29b7f65372422
parentf922109a9c684d1fb852b041eccbeb4781b7039a
build: Use cc.links to check linker arguments

Instead of hard-coding linker flags for a specific operating system and
a specific compiler, we can should cc.links to test them, so they can be
used on more operating systems and compilers.
meson.build